Support site install on Ubuntu 24.04 + PHP 8.3 #3075
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #2936 (when finished).
Changes to get the install working:
perform_end_of_turn_die_actions()- previous versions of PHP would let you | a bool with an array and get something truthy; that doesn't fly in PHP 8.3Changes to get PHPUnit working:
Changes to get UI tests working:
Shadowshade: it'd be great if you could take a look at this:
readAttribute(), do you have any concerns about the approach?readAttribute()test problem? Do you think it's a blocker? I can try to think about other ways to test the internal state you're trying to test, but i kind of think this is something we're going to have to improve over time. I'm personally not that worried about it, because it's only two tests, and my experience has been that testing the externally-visible state of games works pretty well. But i'm sure you use the tests for various things before submitting PRs in the first place.perform_end_of_turn_die_actions(), some of the responder tests were failing withTypeError: Unsupported operand types: bool | arrayin a case in which a button hado(V)?at the end of a round. I think it's pretty clear what the issue was (as noted above in the commit message), and i don't have concerns about the fix, but LMK if you do.Obviously i'll need to put up a dev site and run some replay tests and stuff, but i wanted to start out with you taking a look at the change now that CircleCI is passing.
One note in passing: it seems like newer versions of PHP have better support for type hints (that's what i had to add to the
setUp()andtearDown()functions). I actually think making use of type hints in our PHP code could do us a lot of good in terms of avoiding surprising problems caused by functions that turn out to be more polymorphic than we thought they were. If you agree, let's cut an issue to start adding them down the line as time permits.